﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="TutorDetails.aspx.vb" Inherits="CommunityWebsiteProject.TutorDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2" BackColor="White" BorderColor="#999999" 
            BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical">
            <AlternatingRowStyle BackColor="#DCDCDC" />
            <Columns>
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="Surname" HeaderText="Surname" 
                    SortExpression="Surname" />
                <asp:ImageField DataImageUrlField="Picture" HeaderText="Picture">
                    <ControlStyle CssClass="tutorImage" />
                </asp:ImageField>
                <asp:BoundField DataField="HourlyRate" HeaderText="HourlyRate" DataFormatString = "{0:c}"
                    SortExpression="HourlyRate" />
                <asp:BoundField DataField="Qualifications" HeaderText="Qualifications" 
                    SortExpression="Qualifications" />
                <asp:BoundField DataField="Experience" HeaderText="Experience" 
                    SortExpression="Experience" />
                <asp:BoundField DataField="Availability" HeaderText="Availability" 
                    SortExpression="Availability" />
                <asp:BoundField DataField="EmailAddress" HeaderText="EmailAddress" 
                    SortExpression="EmailAddress" />
            </Columns>
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#0000A9" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#000065" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:TutorsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:TutorsConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Title], [Surname], [Picture], [HourlyRate], [Qualifications], [Experience], [Availability], [EmailAddress] FROM [tbl_Tutors] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:TutorsConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:TutorsConnectionString.ProviderName %>" 
            SelectCommand="SELECT [Title], [Surname], [Picture], [HourlyRate], [Qualifications], [Experience], [Availablity] FROM [tbl_Tutors] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
    </p>
    <p>
        &nbsp;</p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
